//统一管理公共相关的接口
import mockRequest from '@/utils/mockRequest'
import request from '@/utils/request'
import type { resBannerItem, userMsg } from './type'

enum API {
    BANER_ITEM_URL = '/bannerItem',
    SEND_USER_MSG_URL = '/v5/app/entry/data/create'
}

//发送请求获取每个页面头部大图
export const reqGetBannerItem = () => mockRequest.get<any, resBannerItem>(API.BANER_ITEM_URL)

//将联系我们页面的用户数据发送到服务器
export const reqSendUserMsg = (data: userMsg, headers: any) => request({ url: API.SEND_USER_MSG_URL, method: 'POST', data: data, headers: headers })